[PATCH libaio 05/14] Use new symver function attribute to support LTO builds
authorGuillem Jover <guillem@hadrons.org>
Tue, 2 Nov 2021 21:37:32 +0000 (22:37 +0100)
committerGuillem Jover <guillem@debian.org>
Tue, 19 Apr 2022 13:57:07 +0000 (14:57 +0100)
commit48aefb1f818ff87df016d77475f8dd963a2fa58e
treeb5b2fdebae54d01edc07d1f9a4ec323d4d9fedba
parente02e398e38f588dfaf97f44c75d1d6d58b7fbe0a
[PATCH libaio 05/14] Use new symver function attribute to support LTO builds

The LTO support cannot work properly when there are versioned symbols
via asm statements, as those are not seen by the compiler. Use the new
function attributes if supported instead of the asm statements.

We need to move the SYMVER calls after the function definitions
otherwise it will reference symbols not yet seen.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0005-Use-new-symver-function-attribute-to-support-LTO-bui.patch
src/compat-0_1.c
src/syscall.h